<template>
	<view>
		<view class="header">
			<image src="../../static/jinbi.jpg"></image>
		</view>
		<view  class="main">
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/gjj.png"></image>
				</view>
				<view class="title">公积金查询</view>
			</view>
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/jsq.png"></image>
				</view>
				<view class="title">贷款计算器</view>
			</view>
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/gjj.png"></image>
				</view>
				<view class="title">省直公积金查询</view>
			</view>
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/gjj.png"></image>
				</view>
				<view class="title">全国公积金查询</view>
			</view>
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/gjj-02.png"></image>
				</view>
				<view class="title">企业公积金查询</view>
			</view>
			<view class="item" v-on:click="goAccount">
				<view class="img">
					<image src="../../static/gjj-01.png"></image>
				</view>
				<view class="title">公积金总账查询</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		onUnload() {
			uni.clearStorageSync()
		},
		methods:{
			goAccount(){
				var userInfo = uni.getStorageSync("setUserData"),that=this
				if(!userInfo){
					uni.reLaunch({
						url:"../login/login"
					})
				}else{
					uni.navigateTo({
						url:'../account/account'
					})
				}
				
			}
		}
	}
	
</script>

<style>
	.header image{
		width: 100%;
		/* height: 300rpx; */
	}
	.main{
		text-align: center;
		color: #555555;
		/* margin-top: 200rpx; */
	}
	.main .item{
		width: 47%;
		float: left;
		padding: 10rpx;
		margin-top: 20rpx;
	}
	.item .img{
		width: 90rpx;
		float: left;
		text-align: right;
	}
	.item .title{
		line-height: 70rpx;
		text-align: left;
	}
	.img image{
		width: 60rpx;
		height: 60rpx;
	}
</style>
